
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 03/29/2011 13:12:13
-- Generated from EDMX file: D:\@yuxinyang\v3\YiDeSoft\BigTrunk\EzDesk-Dev\Services\Core\EzDesk.Core.Data\EzDeskDatabase.edmx
-- --------------------------------------------------

SET QUOTED_IDENTIFIER OFF;
GO
USE [EzDeskDatabase];
GO
IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]');
GO

-- --------------------------------------------------
-- Dropping existing FOREIGN KEY constraints
-- --------------------------------------------------


-- --------------------------------------------------
-- Dropping existing tables
-- --------------------------------------------------

IF OBJECT_ID(N'[dbo].[UserStatusSet]', 'U') IS NOT NULL
    DROP TABLE [dbo].[UserStatusSet];
GO

-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------

-- Creating table 'UserStatusSet'
CREATE TABLE [dbo].[UserStatusSet] (
    [FeedId] uniqueidentifier  NOT NULL,
    [UserId] uniqueidentifier  NOT NULL,
    [CreateOn] datetime  NOT NULL
);
GO

-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------

-- Creating primary key on [UserId] in table 'UserStatusSet'
ALTER TABLE [dbo].[UserStatusSet]
ADD CONSTRAINT [PK_UserStatusSet]
    PRIMARY KEY CLUSTERED ([UserId] ASC);
GO

-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------

-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------